#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	int temp = 0;
	int arr[3] = {0};

	for (int k = 0; k < 3; k++)
	{
		scanf("%d", &arr[k]);
	}
	for (int i = 0; i < 3; i++)
	{
		for (int j = 0; j < 3; j++)
		{
			if (arr[j] <= arr[j+1])
			{
				temp = arr[j+1];
				arr[j + 1] = arr[j];
				arr[j] = temp;
			}
		}
	}
	for (int k = 0; k < 3; k++)
	{
		printf("%d", arr[k]);
	}

	return 0;
}